home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex38.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  279 b   |  14 lines

  1. Program Example38;
  2.  
  3. { Program to demonstrate the Lo function. }
  4.  
  5. Var L : Longint;
  6.     W : Word;
  7.  
  8. begin
  9.   L:=(1 Shl 16) + (1 Shl 4);  { $10010 }
  10.   Writeln (Lo(L));            { Prints 16 }
  11.   W:=(1 Shl 8) + (1 Shl 4);   { $110   } 
  12.   Writeln (Lo(W));            { Prints 16 }
  13. end.
  14.